import newAxios from '../../utils/axios'
//密码登录
export const loginApi = (data)=>{
    return newAxios.post('/user/login',
      data
    )
    }

//短信登录获取验证码
export const loginYzmApi = (data)=>{
  return newAxios.get('/user/verifcode/'+ data)
}
//短信登录
export const loginMsgApi = (data)=>{
  return newAxios.post('/user/logintwo',{
    data
  })
}


//获取验证码注册
export const regYzmApi=(data)=>{
  return newAxios.get('/user/verifcodetwo/'+data
  )
}

//注册
export const registerApi = (data)=>{
      return newAxios.post('/user/enroll',{
          data
      })
}